package view;

import model.Circle;
import model.storage.GeneralStorage;
import controller.Controller;

public class Main {
	public static void main(String[] args) {
		javax.swing.SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				final GeneralStorage generalStorage = new GeneralStorage();
		        final Controller controller = new Controller(generalStorage);
		        addSomeInitData(controller);
				new WrapperFrame(controller);
			}

			private void addSomeInitData(Controller controller) {
				
				controller.addShape(new Circle(5,5,4));
				controller.addShape(new Circle(5,15,4));
				controller.addShape(new Circle(5,25,4));
				controller.addShape(new Circle(5,35,4));
				
			}
		});
	}
}
